﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using WebSite.Common.Interfaces.Repositories;
using WebSite.Common.Models.ViewModels;
using WebSite.DAL.Db.Repositories;

namespace WebSite.Controllers
{
    public class PlacementController : HWBaseController
    {
        private ILayoutRepository _repository;
        //
        // GET: /Placement/

        public PlacementController(ILayoutRepository layRepo)
        {
            _repository = layRepo;
        }

        public PlacementController()
            :this(new DbLayoutRepository("DbСontext"))
        {
        }


        [OutputCache(CacheProfile = "StaticPage")]
        public ActionResult Index()
        {
            PageLayoutVM layout = _repository.LoadLayout("placement");

            return View(layout);
        }

    }
}
